package com.cqwu.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Dynawork entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "dynawork", catalog = "common")
public class Dynawork implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer sysUserId;
	private short oneLevelType;
	private short twoLevelType;
	private String title;
	private String titleImage;
	private short topLevel;
	private Integer outTime;
	private Integer releyDate;
	private String source;
	private String author;
	private String content;
	private boolean isShow;

	// Constructors

	/** default constructor */
	public Dynawork() {
	}

	/** minimal constructor */
	public Dynawork(Integer sysUserId, short oneLevelType, String title,
			short topLevel, Integer outTime, Integer releyDate, String content,
			boolean isShow) {
		this.sysUserId = sysUserId;
		this.oneLevelType = oneLevelType;
		this.title = title;
		this.topLevel = topLevel;
		this.outTime = outTime;
		this.releyDate = releyDate;
		this.content = content;
		this.isShow = isShow;
	}

	/** full constructor */
	public Dynawork(Integer sysUserId, short oneLevelType, short twoLevelType,
			String title, String titleImage, short topLevel, Integer outTime,
			Integer releyDate, String source, String author, String content,
			boolean isShow) {
		this.sysUserId = sysUserId;
		this.oneLevelType = oneLevelType;
		this.twoLevelType = twoLevelType;
		this.title = title;
		this.titleImage = titleImage;
		this.topLevel = topLevel;
		this.outTime = outTime;
		this.releyDate = releyDate;
		this.source = source;
		this.author = author;
		this.content = content;
		this.isShow = isShow;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "SysUser_ID", nullable = false)
	public Integer getSysUserId() {
		return this.sysUserId;
	}

	public void setSysUserId(Integer sysUserId) {
		this.sysUserId = sysUserId;
	}

	@Column(name = "oneLevelType", nullable = false)
	public short getOneLevelType() {
		return this.oneLevelType;
	}

	public void setOneLevelType(short oneLevelType) {
		this.oneLevelType = oneLevelType;
	}

	@Column(name = "twoLevelType")
	public short getTwoLevelType() {
		return this.twoLevelType;
	}

	public void setTwoLevelType(short twoLevelType) {
		this.twoLevelType = twoLevelType;
	}

	@Column(name = "title", nullable = false, length = 100)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "titleImage", length = 50)
	public String getTitleImage() {
		return this.titleImage;
	}

	public void setTitleImage(String titleImage) {
		this.titleImage = titleImage;
	}

	@Column(name = "topLevel", nullable = false)
	public short getTopLevel() {
		return this.topLevel;
	}

	public void setTopLevel(short topLevel) {
		this.topLevel = topLevel;
	}

	@Column(name = "outTime", nullable = false)
	public Integer getOutTime() {
		return this.outTime;
	}

	public void setOutTime(Integer outTime) {
		this.outTime = outTime;
	}

	@Column(name = "releyDate", nullable = false)
	public Integer getReleyDate() {
		return this.releyDate;
	}

	public void setReleyDate(Integer releyDate) {
		this.releyDate = releyDate;
	}

	@Column(name = "source", length = 100)
	public String getSource() {
		return this.source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	@Column(name = "author", length = 50)
	public String getAuthor() {
		return this.author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	@Column(name = "content", nullable = false, length = 65535)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "isShow", nullable = false)
	public boolean getIsShow() {
		return this.isShow;
	}

	public void setIsShow(boolean isShow) {
		this.isShow = isShow;
	}

}